﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bluefly
{
    public interface IVarioService
    {
         event EventHandler<PressureEventArgs> PressureUpdated;

         event EventHandler<BatteryEventArgs> BatteryVoltageUpdated;

         event EventHandler<TemperatureEventArgs>  TemperatureUpdated;

         event EventHandler<ConnectionStateEventArgs> ConnectionStateUpdated;

         event EventHandler<PositionEventArgs> PositionUpdated;

         IEnumerable<string> Errors { get; }

         bool IsConnected { get; }

         void Stop();
         
        void Run();

        double  SetQNH(double qnh);

        double SetAltitude(double alt);

    }
}
